var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
	res.render('index', {
		title: 'Express'
	});
});


// 商品分类数据
router.get('/api/goods/list', function(req, res, next) {
	res.json({
		code: 0,
		data: [{
				id: 1,
				name: "百货",
				data: [{
						name: "布艺家纺",
						list: [{
								id: 1,
								name: "毛巾",
								bigUrl: "../../static/img/fenlei-img/fenye-img/fenye/baihuo/list1.png",
								shopList: [{
										imgUrl: "../../static/img/fenlei-img/fenye/baihuo/list1_1.png",
										name: "洁丽雅毛巾 纯棉洗脸家用成人不易掉毛柔软全棉吸水抗菌面巾",
										pprice: "17.75",
										oprice: "26.9",
										discount: "5.0"
									},
									{
										imgUrl: "../../static/img/fenlei-img/fenye/baihuo/list1_1.png",
										name: "洁丽雅毛巾 纯棉洗脸家用成人不易掉毛柔软全棉吸水抗菌面巾",
										pprice: "18.75",
										oprice: "24.9",
										discount: "5.3"
									},
									{
										imgUrl: "../../static/img/fenlei-img/fenye/baihuo/list1_1.png",
										name: "洁丽雅毛巾 纯棉洗脸家用成人不易掉毛柔软全棉吸水抗菌面巾",
										pprice: "16.75",
										oprice: "26.9",
										discount: "4.3"
									}
								]

							},
							{
								id: 2,
								name: "桌布",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list2.png"
							},
							{
								id: 3,
								name: "椅垫",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list3.png"
							},
						]
					},
					{
						name: "床上用品",
						list: [{
								id: 1,
								name: "枕头",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list4.png"
							},
							{
								id: 2,
								name: "被子",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list5.png"
							},
							{
								id: 3,
								name: "床垫",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list6.png"
							},
						]
					},
					{
						name: "餐饮用具",
						list: [{
								id: 1,
								name: "保温杯",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list7.png"
							},
							{
								id: 2,
								name: "饭盒",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list8.png"
							},
							{
								id: 3,
								name: "盘子",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list9.png"
							},
						]
					}
				]
			},
			{
				id: 2,
				name: "女装",
				data: [{
						name: "上装",
						list: [{
								id: 1,
								name: "卫衣",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img1.png"
							},
							{
								id: 2,
								name: "毛衣",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img2.png"
							},
							{
								id: 3,
								name: "T恤",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img3.png"
							},
						]
					},
					{
						name: "外套",
						list: [{
								id: 1,
								name: "短外套",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img4.png"
							},
							{
								id: 2,
								name: "毛呢大衣",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img5.png"
							},
							{
								id: 3,
								name: "羽绒服",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img6.png"
							},
						]
					},
					{
						name: "女裤",
						list: [{
								id: 1,
								name: "休闲裤",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img7.png"
							},
							{
								id: 2,
								name: "牛仔裤",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img8.png"
							},
							{
								id: 3,
								name: "打底裤",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img9.png"
							},
						]
					}
				]
			},
			{
				id: 3,
				name: "男装",
				data: [{
						name: "上装",
						list: [{
								id: 1,
								name: "卫衣",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img1.png"
							},
							{
								id: 2,
								name: "毛衣",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img2.png"
							},
							{
								id: 3,
								name: "T恤",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img3.png"
							},
						]
					},
					{
						name: "裤子",
						list: [{
								id: 1,
								name: "休闲长裤",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img4.png"
							},
							{
								id: 2,
								name: "牛仔长裤",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img5.png"
							},
							{
								id: 3,
								name: "工装裤",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img6.png"
							},
						]
					}
				]
			},
			{
				id: 4,
				name: "运动",
				data: [{
						name: "户外鞋服",
						list: [{
								id: 1,
								name: "冲锋衣",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image1.png"
							},
							{
								id: 2,
								name: "防晒衣",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image2.png"
							},
							{
								id: 3,
								name: "羽绒衣",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image3.png"
							},
						]
					},
					{
						name: "运动潮流",
						list: [{
								id: 1,
								name: "运动T恤",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image4.png"
							},
							{
								id: 2,
								name: "板鞋",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image5.png"
							},
							{
								id: 3,
								name: "运动外套",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image6.png"
							},
						]
					},
					{
						name: "跑步",
						list: [{
								id: 1,
								name: "跑步鞋",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image7.png"
							},
							{
								id: 2,
								name: "跑步T恤",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image8.png"
							},
							{
								id: 3,
								name: "跑步外套",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image9.png"
							},
						]
					}
				]
			},
			{
				id: 5,
				name: "百货2",
				data: [{
						name: "布艺家纺",
						list: [{
								id: 1,
								name: "毛巾",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list1.png"
							},
							{
								id: 2,
								name: "桌布",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list2.png"
							},
							{
								id: 3,
								name: "椅垫",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list3.png"
							},
						]
					},
					{
						name: "床上用品",
						list: [{
								id: 1,
								name: "枕头",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list4.png"
							},
							{
								id: 2,
								name: "被子",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list5.png"
							},
							{
								id: 3,
								name: "床垫",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list6.png"
							},
						]
					},
					{
						name: "餐饮用具",
						list: [{
								id: 1,
								name: "保温杯",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list7.png"
							},
							{
								id: 2,
								name: "饭盒",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list8.png"
							},
							{
								id: 3,
								name: "盘子",
								bigUrl: "../../static/img/fenlei-img/fenye/baihuo/list9.png"
							},
						]
					},
				]
			},
			{
				id: 6,
				name: "女装2",
				data: [{
						name: "上装",
						list: [{
								id: 1,
								name: "卫衣",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img1.png"
							},
							{
								id: 2,
								name: "毛衣",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img2.png"
							},
							{
								id: 3,
								name: "T恤",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img3.png"
							},
						]
					},
					{
						name: "外套",
						list: [{
								id: 1,
								name: "短外套",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img4.png"
							},
							{
								id: 2,
								name: "毛呢大衣",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img5.png"
							},
							{
								id: 3,
								name: "羽绒服",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img6.png"
							},
						]
					},
					{
						name: "女裤",
						list: [{
								id: 1,
								name: "休闲裤",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img7.png"
							},
							{
								id: 2,
								name: "牛仔裤",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img8.png"
							},
							{
								id: 3,
								name: "打底裤",
								bigUrl: "../../static/img/fenlei-img/fenye/girl/g_img9.png"
							},
						]
					},
				]
			},
			{
				id: 7,
				name: "男装2",
				data: [{
						name: "上装",
						list: [{
								id: 1,
								name: "卫衣",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img1.png"
							},
							{
								id: 2,
								name: "毛衣",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img2.png"
							},
							{
								id: 3,
								name: "T恤",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img3.png"
							},
						]
					},
					{
						name: "裤子",
						list: [{
								id: 1,
								name: "休闲长裤",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img4.png"
							},
							{
								id: 2,
								name: "牛仔长裤",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img5.png"
							},
							{
								id: 3,
								name: "工装裤",
								bigUrl: "../../static/img/fenlei-img/fenye/boy/m_img6.png"
							},
						]
					}
				]
			},
			{
				id: 8,
				name: "运动2",
				data: [{
						name: "户外鞋服",
						list: [{
								id: 1,
								name: "冲锋衣",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image1.png"
							},
							{
								id: 2,
								name: "防晒衣",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image2.png"
							},
							{
								id: 3,
								name: "羽绒衣",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image3.png"
							},
						]
					},
					{
						name: "运动潮流",
						list: [{
								id: 1,
								name: "运动T恤",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image4.png"
							},
							{
								id: 2,
								name: "板鞋",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image5.png"
							},
							{
								id: 3,
								name: "运动外套",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image6.png"
							},
						]
					},
					{
						name: "跑步",
						list: [{
								id: 1,
								name: "跑步鞋",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image7.png"
							},
							{
								id: 2,
								name: "跑步T恤",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image8.png"
							},
							{
								id: 3,
								name: "跑步外套",
								bigUrl: "../../static/img/fenlei-img/fenye/sports/s_image9.png"
							},
						]
					}
				]
			},
		]

	});
});






























module.exports = router;